/*
 * XML Type:  StopCheckNumber
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StopCheckNumber
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StopCheckNumber(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StopCheckNumberImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StopCheckNumber
{
    
    public StopCheckNumberImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CHECKNUM$0 = 
        new javax.xml.namespace.QName("", "CHECKNUM");
    private static final javax.xml.namespace.QName NAME$2 = 
        new javax.xml.namespace.QName("", "NAME");
    private static final javax.xml.namespace.QName DTUSER$4 = 
        new javax.xml.namespace.QName("", "DTUSER");
    private static final javax.xml.namespace.QName TRNAMT$6 = 
        new javax.xml.namespace.QName("", "TRNAMT");
    private static final javax.xml.namespace.QName CHKSTATUS$8 = 
        new javax.xml.namespace.QName("", "CHKSTATUS");
    private static final javax.xml.namespace.QName CHKERROR$10 = 
        new javax.xml.namespace.QName("", "CHKERROR");
    private static final javax.xml.namespace.QName CURRENCY$12 = 
        new javax.xml.namespace.QName("", "CURRENCY");
    private static final javax.xml.namespace.QName ORIGCURRENCY$14 = 
        new javax.xml.namespace.QName("", "ORIGCURRENCY");
    
    
    /**
     * Gets the "CHECKNUM" element
     */
    public java.lang.String getCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHECKNUM" element
     */
    public net.ofx.types.x2003.x04.CheckNumberType xgetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CHECKNUM" element
     */
    public void setCHECKNUM(java.lang.String checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHECKNUM$0);
            }
            target.setStringValue(checknum);
        }
    }
    
    /**
     * Sets (as xml) the "CHECKNUM" element
     */
    public void xsetCHECKNUM(net.ofx.types.x2003.x04.CheckNumberType checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().add_element_user(CHECKNUM$0);
            }
            target.set(checknum);
        }
    }
    
    /**
     * Gets the "NAME" element
     */
    public java.lang.String getNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "NAME" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAME$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "NAME" element
     */
    public boolean isSetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NAME$2) != 0;
        }
    }
    
    /**
     * Sets the "NAME" element
     */
    public void setNAME(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$2);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "NAME" element
     */
    public void xsetNAME(net.ofx.types.x2003.x04.GenericNameType name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAME$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(NAME$2);
            }
            target.set(name);
        }
    }
    
    /**
     * Unsets the "NAME" element
     */
    public void unsetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NAME$2, 0);
        }
    }
    
    /**
     * Gets the "DTUSER" element
     */
    public java.lang.String getDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTUSER$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTUSER" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTUSER$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTUSER" element
     */
    public boolean isSetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTUSER$4) != 0;
        }
    }
    
    /**
     * Sets the "DTUSER" element
     */
    public void setDTUSER(java.lang.String dtuser)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTUSER$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTUSER$4);
            }
            target.setStringValue(dtuser);
        }
    }
    
    /**
     * Sets (as xml) the "DTUSER" element
     */
    public void xsetDTUSER(net.ofx.types.x2003.x04.DateTimeType dtuser)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTUSER$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTUSER$4);
            }
            target.set(dtuser);
        }
    }
    
    /**
     * Unsets the "DTUSER" element
     */
    public void unsetDTUSER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTUSER$4, 0);
        }
    }
    
    /**
     * Gets the "TRNAMT" element
     */
    public java.lang.String getTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRNAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "TRNAMT" element
     */
    public boolean isSetTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TRNAMT$6) != 0;
        }
    }
    
    /**
     * Sets the "TRNAMT" element
     */
    public void setTRNAMT(java.lang.String trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRNAMT$6);
            }
            target.setStringValue(trnamt);
        }
    }
    
    /**
     * Sets (as xml) the "TRNAMT" element
     */
    public void xsetTRNAMT(net.ofx.types.x2003.x04.AmountType trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TRNAMT$6);
            }
            target.set(trnamt);
        }
    }
    
    /**
     * Unsets the "TRNAMT" element
     */
    public void unsetTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TRNAMT$6, 0);
        }
    }
    
    /**
     * Gets the "CHKSTATUS" element
     */
    public net.ofx.types.x2003.x04.CheckStatusEnum.Enum getCHKSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKSTATUS$8, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.CheckStatusEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHKSTATUS" element
     */
    public net.ofx.types.x2003.x04.CheckStatusEnum xgetCHKSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.CheckStatusEnum)get_store().find_element_user(CHKSTATUS$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CHKSTATUS" element
     */
    public void setCHKSTATUS(net.ofx.types.x2003.x04.CheckStatusEnum.Enum chkstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKSTATUS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHKSTATUS$8);
            }
            target.setEnumValue(chkstatus);
        }
    }
    
    /**
     * Sets (as xml) the "CHKSTATUS" element
     */
    public void xsetCHKSTATUS(net.ofx.types.x2003.x04.CheckStatusEnum chkstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.CheckStatusEnum)get_store().find_element_user(CHKSTATUS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckStatusEnum)get_store().add_element_user(CHKSTATUS$8);
            }
            target.set(chkstatus);
        }
    }
    
    /**
     * Gets the "CHKERROR" element
     */
    public java.lang.String getCHKERROR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKERROR$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHKERROR" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetCHKERROR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(CHKERROR$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "CHKERROR" element
     */
    public boolean isSetCHKERROR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHKERROR$10) != 0;
        }
    }
    
    /**
     * Sets the "CHKERROR" element
     */
    public void setCHKERROR(java.lang.String chkerror)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKERROR$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHKERROR$10);
            }
            target.setStringValue(chkerror);
        }
    }
    
    /**
     * Sets (as xml) the "CHKERROR" element
     */
    public void xsetCHKERROR(net.ofx.types.x2003.x04.MessageType chkerror)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(CHKERROR$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(CHKERROR$10);
            }
            target.set(chkerror);
        }
    }
    
    /**
     * Unsets the "CHKERROR" element
     */
    public void unsetCHKERROR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHKERROR$10, 0);
        }
    }
    
    /**
     * Gets the "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$12, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CURRENCY" element
     */
    public boolean isSetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CURRENCY$12) != 0;
        }
    }
    
    /**
     * Sets the "CURRENCY" element
     */
    public void setCURRENCY(net.ofx.types.x2003.x04.Currency currency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$12);
            }
            target.set(currency);
        }
    }
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$12);
            return target;
        }
    }
    
    /**
     * Unsets the "CURRENCY" element
     */
    public void unsetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CURRENCY$12, 0);
        }
    }
    
    /**
     * Gets the "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "ORIGCURRENCY" element
     */
    public boolean isSetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ORIGCURRENCY$14) != 0;
        }
    }
    
    /**
     * Sets the "ORIGCURRENCY" element
     */
    public void setORIGCURRENCY(net.ofx.types.x2003.x04.Currency origcurrency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$14);
            }
            target.set(origcurrency);
        }
    }
    
    /**
     * Appends and returns a new empty "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$14);
            return target;
        }
    }
    
    /**
     * Unsets the "ORIGCURRENCY" element
     */
    public void unsetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ORIGCURRENCY$14, 0);
        }
    }
}
